package cn.tuling.org.service;

import cn.tuling.basic.util.PageList;
import cn.tuling.org.domain.Department;
import cn.tuling.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentService {

    // 查询全部
    List<Department> findAll();

    // 查询单条
    Department findById(Long deptId);

    // 添加
    void add(Department department);

    // 删除
    void delete(Long deptId);

    // 修改
    void update(Department department);

    //  查询所有的count
    Integer queryByCount(DepartmentQuery query);

    // 分页
    PageList<Department> queryByPage(DepartmentQuery query);
}
